|
PREPARE MATRIX TEXTURE
This command will select an image of tiled textures that the matrix will eventually use.
PREPARE MATRIX TEXTURE Matrix Number, Image Number, Across, Down
Matrix Number
Integer
The matrix number
Image Number
Integer
The image number
Across
Integer
The across value
Down
Integer
The down value
This command does not return a value.
Each grid square in the matrix can have a tile texture, located within the image. Individual tile textures can be obtained from the single image by slicing it into sections both across and down. The tile textures are then assigned a number starting in the top left corner of the sectioned image and working across, then down. To section an image into 4 smaller tile textures you would specify 2 across and 2 down.
ink rgb(0,255,0),0
box 1,1,101,101
get image 1,0,0,101,101
make matrix 1,1000,1000,25,25
prepare matrix texture 1,1,1,1
position matrix 1,0,0,0
update matrix 1
do
loop
if matrix exist(1)=1 then delete matrix 1
end
MATRIX Commands Menu
Index
|